<?
include_once("database_info.php");
include_once("common.php");
connect_select_Test("sermons");
if ($_POST['key'] == crypt("He1sR1sen", $_POST['key'])){
	$result = mysql_query("show tables");
	for ($x=0;$x<mysql_num_rows($result);$x++){
		echo mysql_result($result, $x);
		echo "|cell|";
		$headerResult = mysql_query("SHOW COLUMNS FROM `".mysql_result($result, $x)."`");
		for ($y=0;$y<mysql_num_rows($headerResult);$y++){
			echo mysql_result($headerResult, $y, 0);
			if ($y+1 != mysql_num_rows($headerResult)){
				echo "|cell|";
			}
		}
		if ($x+1 != mysql_num_rows($result)){
			echo "|row|";
		}
	}
}
?>